﻿//
//  Copyright (c) 2011 Extreme: Paweł Huryn (lead), Jakub Domański
//

namespace Extreme.SPFramework.Configuration
{
    /// <summary>
    /// Mapping configuration interface
    /// </summary>
    public interface IMappingConfiguration : IConfigurationBase
    {
        /// <summary>
        /// Gets entity mapping for specified type
        /// </summary>
        /// <typeparam name="T">Type of entity</typeparam>
        EntityMapping GetEntityMapping<T>();

        /// <summary>
        /// Checks if mapping configuration is defined for specified type
        /// </summary>
        /// <typeparam name="T">Type of entity</typeparam>
        bool IsEntityMappingDefined<T>();
    }
}
